package ai.peanut.selfbase.modules.sys.service.impl;

import ai.peanut.selfbase.modules.sys.dao.UserRoleMapper;
import ai.peanut.selfbase.modules.sys.entity.UserRole;
import ai.peanut.selfbase.modules.sys.service.IUserRoleService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户-角色 服务实现类
 * </p>
 *
 * @author lichong
 * @since 2019-02-19
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements IUserRoleService {
    /**
     * 根据用户id删除
     * @param userId
     * @return
     */
    @Override
    public int deleteByUserId(Long userId){
        return  baseMapper.deleteByUserId( userId ) ;
    }
}
